package lee.vioson.remotedata.utils

import com.google.gson.Gson
import okhttp3.MediaType

/**
 *Author:viosonlee
 *Date:2023/6/10
 *DESCRIPTION:
 */

val JSON: MediaType? = MediaType.parse("application/json; charset=utf-8")

val FORM_DATA = MediaType.parse("multipart/form-data")

val Map<*, *>.body
    get() = okhttp3.RequestBody.create(JSON, Gson().toJson(this))
